﻿@model KlubSportowy.ViewModels.ClubMemberViewModel
@{
    ViewBag.Title = "Edycja";
}

<br />
<h2 style="text-align: center">Edycja</h2>
<br /><br />

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset style="margin-left: 100px">
        <legend>ClubMemberViewModel</legend>

        @Html.HiddenFor(m => m.Id)

        <div class="editor-label">
            @Html.LabelFor(m => m.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.UserName)
            @Html.ValidationMessageFor(m => m.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.Email)
            @Html.ValidationMessageFor(m => m.Email)
        </div>

        <p>
            <input type="submit" value="Zapisz" />
        </p>
    </fieldset>
}

<div style="margin-left: 100px">
    @Html.ActionLink("Wróć do listy", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
